package com.zhaotianhao.utils;
/**
 * 	文件大小枚举类
 */
public enum FileSizeUnit {

	B(1, "B"),
    K(1024, "KB"),
    M(1024 * 1024, "MB"),
    G(1024 * 1024 * 1024, "GB"),
    T(1024 * 1024 * 1024 * 1024, "TB"),
    P(1024 * 1024 * 1024 * 1024 * 1024, "PB");
	
	private long code;
	
	private String name;

	public long getCode() {
		return code;
	}

	public String getName() {
		return name;
	}

	private FileSizeUnit(long code, String name) {
		this.code = code;
		this.name = name;
	}

	
	
}
